'use strict';

const Service = require('egg').Service;

class DpartService extends Service {
  async getDparts() {
    const { app } = this;
    const dparts = await app.mysql.query('select * from dparts');
    return dparts;
  }
}

module.exports = DpartService;
